@model FormInputProject.Models.Record

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.OriginValue)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.OriginValue)
    @Html.ValidationMessageFor(model => model.OriginValue)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.CalculateValue)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.CalculateValue)
    @Html.ValidationMessageFor(model => model.CalculateValue)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.WriteTime)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.WriteTime)
    @Html.ValidationMessageFor(model => model.WriteTime)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Modified)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Modified)
    @Html.ValidationMessageFor(model => model.Modified)
</div>

<div class="editor-label">
    Point
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.PointId, ((IEnumerable<FormInputProject.Models.Point>)ViewBag.PossiblePoint).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.PointId.ToString(),
        Selected = (Model != null) && (option.PointId == Model.PointId)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.PointId)
</div>
